/*
 *  Copyright (c) Skrumtious
 */
package com.skrumtious.backend;

import java.io.Serializable;

/**
 * Response message
 * 
 * @author Tony
 *
 */
public abstract class AbstractSkrumResponse implements Serializable {

	/**
	 * SUID
	 */
	private static final long serialVersionUID = -6479354790263890423L;

	/**
	 * Success
	 */
	private boolean success;
	
	/**
	 * Stack Trace
	 */
	private String stackTrace;
	
	/**
	 * client view error message
	 */
	private String humanReadableError;

	/**
	 * @param success
	 * @param stackTrace
	 * @param humanReadableError
	 */
	public AbstractSkrumResponse(boolean success, String stackTrace,
			String humanReadableError) {
		super();
		this.success = success;
		this.stackTrace = stackTrace;
		this.humanReadableError = humanReadableError;
	}

	/**
	 * @return the success
	 */
	public boolean isSuccess() {
		return success;
	}

	/**
	 * @return the stackTrace
	 */
	public String getStackTrace() {
		return stackTrace;
	}

	/**
	 * @return the humanReadableError
	 */
	public String getHumanReadableError() {
		return humanReadableError;
	}
	
	
}
